package com.ruoyi.system.service.impl;

import com.ruoyi.system.domain.SysUsertype;
import com.ruoyi.system.mapper.SysUsertypeMapper;
import com.ruoyi.system.service.ISysUsertypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 【请填写功能名称】Service业务层处理
 *
 * @author ruoyi
 * @date 2022-09-30
 */
@Service
public class SysUsertypeServiceImpl implements ISysUsertypeService
{
    @Autowired
    private SysUsertypeMapper sysUsertypeMapper;

    /**
     * 查询【请填写功能名称】
     *
     * @param usertypeId 【请填写功能名称】主键
     * @return 【请填写功能名称】
     */
    @Override
    public SysUsertype selectSysUsertypeByUsertypeId(Long usertypeId)
    {
        return sysUsertypeMapper.selectSysUsertypeByUsertypeId(usertypeId);
    }

    /**
     * 查询【请填写功能名称】列表
     *
     * @param sysUsertype 【请填写功能名称】
     * @return 【请填写功能名称】
     */
    @Override
    public List<SysUsertype> selectSysUsertypeList(SysUsertype sysUsertype)
    {
        return sysUsertypeMapper.selectSysUsertypeList(sysUsertype);
    }

    /**
     * 新增【请填写功能名称】
     *
     * @param sysUsertype 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int insertSysUsertype(SysUsertype sysUsertype)
    {
        return sysUsertypeMapper.insertSysUsertype(sysUsertype);
    }

    /**
     * 修改【请填写功能名称】
     *
     * @param sysUsertype 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int updateSysUsertype(SysUsertype sysUsertype)
    {
        return sysUsertypeMapper.updateSysUsertype(sysUsertype);
    }

    /**
     * 批量删除【请填写功能名称】
     *
     * @param usertypeIds 需要删除的【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteSysUsertypeByUsertypeIds(Long[] usertypeIds)
    {
        return sysUsertypeMapper.deleteSysUsertypeByUsertypeIds(usertypeIds);
    }

    /**
     * 删除【请填写功能名称】信息
     *
     * @param usertypeId 【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteSysUsertypeByUsertypeId(Long usertypeId)
    {
        return sysUsertypeMapper.deleteSysUsertypeByUsertypeId(usertypeId);
    }
}
